﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WJSHWebApi.DBModel
{
    [Table("Lift_Entity")]
    public class Lift_Entity: BaseDbmodel
    {
        public int id { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public int Deviceid { get; set; }
        /// <summary>
        ///IP地址
        /// </summary>
        public string IP { get; set; }
        /// <summary>
        /// 端口号
        /// </summary>
        public int Port { get; set; }
        /// <summary>
        /// 1F呼叫站
        /// </summary>
        public int OneCallStation { get; set; }
        /// <summary>
        /// 1F轿厢站
        /// </summary>
        public int OneCabinStation { get; set; }
        /// <summary>
        /// 2F呼叫站
        /// </summary>
        public int TwoCallStation { get; set; }
        /// <summary>
        ///  2F轿厢站
        /// </summary>
        public int TwoCabinStation { get; set; }
        /// <summary>
        /// 3F呼叫站
        /// </summary>
        public int ThreeCallStation { get; set; } = 0;
        /// <summary>
        /// 3F轿厢站
        /// </summary>
        public int ThreeCabinStation { get; set; } = 0;
        /// <summary>
        /// 是否可以使用
        /// </summary>
        public bool IsEnable { get; set; }
        public int Remark { get; set; }
        /// <summary>
        /// 横坐标
        /// </summary>
        public int GoodX { get; set; }
        /// <summary>
        /// 纵坐标
        /// </summary>
        public int GoodY { get; set; }
        public Lift_Entity Clone()
        {
            Lift_Entity t = new Lift_Entity()
            {
                Deviceid = this.Deviceid,
                IP = this.IP,
                Port = this.Port,
                OneCallStation = this.OneCallStation,
                OneCabinStation = this.OneCabinStation,
                TwoCallStation = this.TwoCallStation,
                TwoCabinStation = this.TwoCabinStation,
                ThreeCallStation = this.ThreeCallStation,
                ThreeCabinStation = this.ThreeCabinStation,
                IsEnable = this.IsEnable,
                Remark = this.Remark
            };
            return t;
        }
    }
}
